package com.initial.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.initial.entity.TbSystemFunction;
import com.initial.entity.TbSystemUser;
import com.initial.service.TbSystemFunctionService;
import com.initial.mapper.TbSystemFunctionMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
* @author 29081
* @description 针对表【tb_system_function】的数据库操作Service实现
* @createDate 2021-12-21 15:36:04
*/
@Service
public class TbSystemFunctionServiceImpl extends ServiceImpl<TbSystemFunctionMapper, TbSystemFunction>
    implements TbSystemFunctionService{
    @Resource
    private TbSystemFunctionMapper tbSystemFunctionMapper;
    @Override
    public IPage<TbSystemFunction> searchAllPage(Page<TbSystemUser> page) {
        IPage<TbSystemFunction> tbSystemFunctionIPage = tbSystemFunctionMapper.searchAllPage(page);
        return tbSystemFunctionIPage;
    }

    @Override
    public IPage<TbSystemFunction> selectPage(Page<TbSystemUser> page) {
        IPage<TbSystemFunction> tbSystemFunctionIPage = tbSystemFunctionMapper.selectPage(page);
        return tbSystemFunctionIPage;
    }

    @Override
    public Integer deleteById(Integer id,Integer updateBy) {
        Integer integer = tbSystemFunctionMapper.deleteById(id,updateBy);
        return integer;
    }
}




